package main

import (
	"github.com/energye/energy/v2/cef"
	"webpage-craw/assets"
	"webpage-craw/src/application"
	"webpage-craw/src/browser"
	"webpage-craw/src/env"
)

// energy build --args="-tags=prod"
func main() {
	println("main process env = dev:", env.IsENV)
	cef.GlobalInit(nil, assets.Assets())
	app := application.GetApplication()
	cef.BrowserWindow.SetBrowserInit(browser.Init)
	//run app
	cef.Run(app)
}
